  <#assign _comment>${table.comment?replace('表','')}</#assign>
  /**
 * 功能:${_comment}编辑页面定义
 */
 Ext.define('${config.packageName}.edit.${table.entityName}',{
    extend: 'expand.form.SimpleForm',
    entity : '${table.entityName}',
    keyField : '${table.primaryProperty.property}',
    getFieldConfig : function(){
        return [
            <#if table.primaryProperty?exists>
            {
                fieldLabel:'${table.primaryProperty.property}',
                xtype:'hidden',
                name:'${table.primaryProperty.property}',
                id:'${table.primaryProperty.property}'
            },
            </#if>
            <#list table.propertys as prop>
            <#if prop.notBuild?exists && prop.notBuild==true>
            <#elseif prop.notInsert?exists && prop.notInsert==true>
            <#else>
            {
                fieldLabel: "${prop.comment}",
                emptyText:'${prop.comment}', 
                width: 100,
                xtype:<#if prop.name?index_of('_id')!=-1 || prop.property=='fullPath'|| prop.property=='fullName'>'hidden'<#elseif prop.type=="datetime">'datefield'<#elseif prop.type=="decimal">'numberfield',
                allowDecimals:true<#elseif prop.type=="Long" || prop.type=="Integer">'numberfield',
                allowDecimals:false<#elseif prop.type=="boolean">'checkboxfield'<#elseif prop.property=='description' || prop.property=='remark' || prop.type=='text'>'textarea'<#else>'textfield'</#if><#if prop.notNull?exists && prop.notNull==true>,
                allowBlank: false</#if>,
                <#if prop.dbDefaultValue?exists>value:<#if prop.type=="timestamp" || prop.type=="datetime" || prop.type=="date">new Date()<#else>'${prop.dbDefaultValue}'</#if>,</#if>
                name: '${prop.property}',
                id: '${prop.property}'
            },
            </#if>
            </#list>
        ]
    }
});